{/* LAYOUT模板 */}
	<layout name="login_layout"/>
{/* LAYOUT模板 */}
{/* import Js,Css */}	
<css href="__THEMES__/css/common.css"/>
<css href="__PUBLIC__/css/jquery-ui.css" />
<js href="__PUBLIC__/js/core/jquery-ui.1.10.4.js" />
{/* import js,css */}

<!--购买步骤图-->
<style>
.step_buy_pic{background:url('__THEMES__/images/bg_services.jpg') top center no-repeat; height:299px;}
.step3-wrapper {
	width: 1170px;
	margin: 0 auto 20px;
	border: 1px solid #e7e7e7;
	border-radius: 4px;
}
</style>
<div class="step_buy">
	<span class="dp step_buy_pic"></span>
</div>
<!--购买步骤图-->


<!--个人中心服务-->
<style>
.mservice{background:#FAFAFA; position:relative}.mservice_wrap{padding-top:50px; padding-bottom:50px;}.mservice_wrap dl dd{display:block; float:left; width:239px;}.mservice_item .mservice_item_pic{background:url('__THEMES__/images/icon_services.png') 0px 0px no-repeat;width:136px; height:136px; display:block; margin:auto;}.mservice_item .usercenter{background-position:0px 0px; display:block;}.mservice_item .afterservie{background-position:-136px 0px; display:block;}.mservice_item .servicecenter{background-position:-272px 0px; display:block;}.mservice_item .helpcenter{background-position:-408px 0px; display:block;}.mservice_item .downloadcenter{background-position:-544px 0px; display:block;}.mservice_item a{text-decoration:none; color:#404040;}.mservice_item a:hover{color:#E8380D;}.mservice_item .mservice_item_text{display:block; text-align:center; font-size:16px;margin-top:20px;}
</style>
<div class="mservice clearfix">
	<div class="w_1200 mservice_wrap">
		<dl class="clearfix">
			<dd class="mservice_item">	
				<a href="#">
					<span class="mservice_item_pic usercenter"></span>
					<b class="mservice_item_text">个人中心</b>
				</a>
			</dd>
			<dd class="mservice_item">	
				<a href="#">
					<span class="mservice_item_pic afterservie"></span>
					<b class="mservice_item_text ">售后服务</b>
				</a>
			</dd>
			<dd class="mservice_item">	
				<a href="#">
					<span class="mservice_item_pic servicecenter"></span>
					<b class="mservice_item_text ">客服中心</b>
				</a>
			</dd>
			<dd class="mservice_item">	
				<a href="#">
					<span class="mservice_item_pic helpcenter"></span>
					<b class="mservice_item_text">帮助中心</b>
				</a>
			</dd>
			<dd class="mservice_item">	
				<a href="#">
					<span class="mservice_item_pic downloadcenter"></span>
					<b class="mservice_item_text">软件下载</b>
				</a>
			</dd>
		</dl>
	</div>
</div>
<!--个人中心服务-->

<!--用户中心导航-->
<style>
.w20{width:20%;}
.w79{width:79%;}
.RBanner{min-height:550px;height:auto;}
</style>
<div class="">
	<div class="w_1200 mp20 clearfix">
		<!--左边栏-->
		<div class="LBanner fl w20">
			<include file="User:user_menu"/>
		</div>
		<!--左边栏-->
		<!--右边栏-->
		<div class="RBanner fr w79">
			<style>
			.uc-box {
				margin-left: 20px;
			}
			.xm-line-box .box-hd .title {
				margin: 0;
				font-size: 18px;
				font-weight: 400;
				line-height: 50px;
				color: #333;
				text-align:left;
			}
			.xm-line-box .box-hd .more {
				position: absolute;
				top: 20px;
				right: 0;
			}
			.uc-order-list-type a.current {
				color: #ff4a00;
			}
			.uc-order-list-type a {
				color: #333;
			}
			.uc-order-list-type .sep {
				margin: 0 15px;
			}
			.box-hd {
				position: relative;
				height: 50px;
				border-bottom: 1px solid #e2e3e5;
			}
			</style>
			<div class="xm-line-box uc-box">
				<div class="box-hd">
					<h3 class="title">
						我的订单
					</h3>
					<div class="more">
						<div class="uc-order-list-type">
							<a class="current" href="http://order.mi.com/user/order?r=87817961_t1410778176">
								全部订单
							</a>
							<span class="sep">
								|
							</span>
							<a href="http://order.mi.com/user/order/7?r=87817961_t1410778176">
								未支付订单
							</a>
							<span class="sep">
								|
							</span>
							<a href="http://order.mi.com/user/recharge?r=87817961_t1410778176">
								话费充值订单
							</a>
							<span class="sep">
								|
							</span>
							<a href="http://order.mi.com/user/order/5?r=87817961_t1410778176">
								已关闭订单
							</a>
						</div>
					</div>
				</div>
			</div>
			<!--右边对应左边栏内容-->
			<!-- *用户中心默认显示页面 start-->
				<if condition="$action eq 'info'">
					<div class="xm-line-box uc-box">
						<div class="box-hd">
							<h3 class="title">
								我的个人中心
							</h3>
						</div>
						<div class="">
							<font class="f5">
								<b class="f4">{$info.username}</b> ，欢迎您回来
							</font>
							<br/>
							<div class="blank"></div>
							<!--登陆时间-->
								{$lang.last_time}: {$info.last_time}
							<!--登陆时间-->
							<br/>
							<div class="blank5"></div>
							<!--会员等级-->
								{$rank_name} ：<b class="f4">[ {$next_rank_name} ]</b>
							<!--会员等级-->
							<br/>
							<div class="blank5"></div>
							<!--邮箱验证-->
							<if condition="$info['is_validate'] eq 0">
								{$lang.not_validated} 
								<a href="#" id="send_mail_btn" style="color:#006bd0;">{$lang.resend_hash_mail}</a><br />
							</if>
							<!--邮箱验证-->
							<!--公告-->
							<div class="hide" style="margin:5px 0; border:1px solid #a1675a;padding:10px 20px; background-color:#e8d1c9;">
								<img src="__THEMES__/images/note.gif" alt="note" />
								&nbsp;{$user_notice}
							</div>
							<!--公告-->
							<div class="r clearfix hide">
								<!--我的账户-->
								<div class="f_l" style="width:350px;">
									<h5>
										<span>{$lang.your_account}</span>
									</h5>
									<div class="blank"></div>
									{$lang.your_surplus}:<a href="user.php?act=account_log" style="color:#006bd0;">{$info.surplus}</a><br />
									<if condition="$info['credit_line'] gt 0">
										{$lang.credit_line}:{$info.formated_credit_line}<br />
									</if>
									{$lang.your_bonus}:<a href="user.php?act=bonus" style="color:#006bd0;">{$info.bonus}</a><br />
									{$lang.your_integral}:{$info.integral}<br />
								</div>
								<!--我的账户-->
								<!--用户提醒-->
								<div class="f_r" style="width:350px;">
									<h5>
										<span>{$lang.your_notice}</span>
									</h5>
									<div class="blank"></div>
									<volist name="prompt" id="item">
										{$item.text}<br />
									</volist>
									{$lang.last_month_order}{$info.order_count}{$lang.order_unit}<br />
									<if condition="$info['shipped_order']">
									{$lang.please_received}<br />
									<volist name="$info['shipped_order']" id="item">
										<a href="user.php?act=order_detail&order_id={$item.order_id}" style="color:#006bd0;">{$item.order_sn}</a>
									</volist>
									</if>
								</div>
								<!--用户提醒-->
							</div>
						</div>						
					</div>					
					<script>
						$('#send_mail_btn').click(function(){
							$.ajax({
								url:'__URL__/send_email',
								type:'get',
								dataType:'json',
								data:'',
								beforeSend:function(){},
								success:function(msg){
									alert('发送成功');
								}
							});
						});
					</script>
				</if>
				<!-- #用户中心默认显示页面 end-->

				<!-- *我的留言 start-->
				<if condition="$action eq 'message_list'">
					<h5>
						<span>{$lang.label_message}</span>
					</h5>
					<div class="blank"></div>
					<volist name="message_list" id="message">
						<div class="f_l">
							<b>{$message.msg_type}:</b>&nbsp;&nbsp;<font class="f4">{$message.msg_title}</font> ({$message.msg_time})
						</div>
						<div class="f_r">
							<a href="user.php?act=del_msg&amp;id={$key}&amp;order_id={$message.order_id}" title="{$lang.drop}" onclick="if (!confirm('{$lang.confirm_remove_msg}')) return false;" class="f6">{$lang.drop}</a>
						</div>
						<div class="msgBottomBorder">
							{$message.msg_content}
							<if condition="$message['message_img']">
								<div align="right">
									<a href="data/feedbackimg/{$message.message_img}" target="_bank" class="f6">{$lang.view_upload_file}</a>
								</div>
							</if>
							<br />
							<if condition="$message['re_msg_content']">
								<a href="mailto:{$message.re_user_email}" class="f6">{$lang.shopman_reply}</a> 
								({$message.re_msg_time})<br />
								{$message.re_msg_content}
							</if>
						</div>
					</volist>

					<div class="blank"></div>
					<form action="user.php" method="post" enctype="multipart/form-data" name="formMsg" onSubmit="return submitMsg()">
						<table width="100%" border="0" cellpadding="3">
							<if condition="$order_info">
							<tr>
								<td align="right">{$lang.order_number}</td>
								<td>
								<a href ="{$order_info.url}"><img src="images/note.gif" />{$order_info.order_sn}</a>
								<input name="msg_type" type="hidden" value="5" />
								<input name="order_id" type="hidden" value="{$order_info.order_id}" class="inputBg" />
								</td>
							</tr>
							<else/>
							<tr>
								<td align="right">{$lang.message_type}：</td>
								<td>
									<input name="msg_type" type="radio" value="0" checked="checked" />
									{$lang.type[0]}留言
									<input type="radio" name="msg_type" value="1" />
									{$lang.type[1]}投诉
									<input type="radio" name="msg_type" value="2" />
									{$lang.type[2]}询问
									<input type="radio" name="msg_type" value="3" />
									{$lang.type[3]}售后 
									<input type="radio" name="msg_type" value="4" />
									{$lang.type[4]}求购
								</td>
							</tr>
							</if>
							
							<tr>
								<td align="right">{$lang.message_title}：</td>
								<td><input name="msg_title" type="text" size="30" class="inputBg" /></td>
							</tr>
							<tr>
								<td align="right" valign="top">{$lang.message_content}：</td>
								<td><textarea name="msg_content" cols="50" rows="4" wrap="virtual" class="B_blue"></textarea></td>
							</tr>
							<tr>
								<td align="right">{$lang.upload_img}：</td>
								<td><input type="file" name="message_img"  size="45"  class="inputBg" /></td>
							</tr>
							<tr>
								<td>&nbsp;</td>
								<td>
									<input type="hidden" name="act" value="act_add_message" />
									<input type="submit" value="{$lang.submit}" class="bnt_bonus" />
								</td>
							</tr>
							<tr>
								<td>&nbsp;</td>
								<td>
									{$lang.img_type_tips}<br />
									{$lang.img_type_list}
								</td>
							</tr>
						</table>
					</form>
				</if>
				<!--#我的留言 end-->

				
				<!-- *我的评论 start-->
				<if condition="$action eq 'comment_list'">
					<h5>
						<span>{$lang.label_comment}</span>
					</h5>
					<div class="blank"></div>
					<volist name="comment_list" id="comment">
						<div class="f_l">
							<b>
								<if condition="$comment['comment_type']">
									{$lang.goods_comment}
								<else/>
									{$lang.article_comment}
								</if>: 
							</b>
							<font class="f4">
								{$comment.cmt_name}
							</font>
							&nbsp;&nbsp;({$comment.formated_add_time})
						</div>
						<div class="f_r">
							<a href="user.php?act=del_cmt&amp;id={$comment.comment_id}" title="{$lang.drop}" onclick="if (!confirm('{$lang.confirm_remove_msg}')) return false;" class="f6">{$lang.drop}</a>
						</div>
						<div class="msgBottomBorder">
							{$comment.content}<br />
							<if condition="$comment['reply_content']">
								<b>{$lang.reply_comment}：</b>
								<br/>
								{$comment.reply_content}
							</if>
						</div>
					</volist>
					
					<if condition="$comment_list">
						<!-- #BeginLibraryItem "/library/pages.lbi" --><!-- #EndLibraryItem -->
					<else/>
						{$lang.no_comments}
					</if>
				</if>
				<!--#我的评论 end-->

				<!--*收藏商品列表页面 start-->
				<if condition="$action eq 'collection_list'">
					<h5>
						<span>{$lang.label_collection}</span>
					</h5>
					<div class="blank"></div>
					<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
						<tr align="center">
							<th width="35%" bgcolor="#ffffff">{$lang.goods_name}</th>
							<th width="30%" bgcolor="#ffffff">{$lang.price}</th>
							<th width="35%" bgcolor="#ffffff">{$lang.handle}</th>
						</tr>
						<volist name="goods_list" id="goods">
						<tr>
							<td bgcolor="#ffffff">
								<a href="{$goods.url}" class="f6">{$goods.goods_name:html}</a>
							</td>
							<td bgcolor="#ffffff">
								<if condition="$goods['promote_price'] eq ''">
									{$lang.promote_price}<span class="goods-price">{$goods.promote_price}</span>
								<else/>
									{$lang.shop_price}<span class="goods-price">{$goods.shop_price}</span>
								</if>
							</td>
							<td align="center" bgcolor="#ffffff">
								<if condition="$goods['is_attention']">
									<a href="javascript:if (confirm('{$lang.del_attention}')) location.href='user.php?act=del_attention&rec_id={$goods.rec_id}'" class="f6">{$lang.no_attention}</a>
								<else/>
									<a href="javascript:if (confirm('{$lang.add_to_attention}')) location.href='user.php?act=add_to_attention&rec_id={$goods.rec_id}'" class="f6">{$lang.attention}</a>
								</if>
								<a href="javascript:addToCart({$goods.goods_id})" class="f6">{$lang.add_to_cart}</a> <a href="javascript:if (confirm('{$lang.remove_collection_confirm}')) location.href='user.php?act=delete_collection&collection_id={$goods.rec_id}'" class="f6">{$lang.drop}</a>
							</td>
						</tr>
						</volist>
					</table>
					<div class="blank5"></div>

					<h5>
						<span>{$lang.label_affiliate}</span>
					</h5>
					<div class="blank"></div>
					<form name="theForm" method="post" action="">
						<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
							<tr>
								<td align="right" bgcolor="#ffffff">{$lang.label_need_image}</td>
								<td bgcolor="#ffffff">
									<select name="need_image" id="need_image" class="inputBg">
										<option value="true" selected>{$lang.need}</option>
										<option value="false">{$lang.need_not}</option>
									</select>
								</td>
							</tr>
							<tr>
								<td align="right" bgcolor="#ffffff">{$lang.label_goods_num}</td>
								<td bgcolor="#ffffff"><input name="goods_num" type="text" id="goods_num" value="6" class="inputBg" /></td>
							</tr>
							<tr>
								<td align="right" bgcolor="#ffffff">{$lang.label_arrange}</td>
								<td bgcolor="#ffffff">
									<select name="arrange" id="arrange" class="inputBg">
										<option value="h" selected>{$lang.horizontal}</option>
										<option value="v">{$lang.verticle}</option>
									</select>
								</td>
							</tr>
							<tr>
								<td align="right" bgcolor="#ffffff">{$lang.label_rows_num}</td>
								<td bgcolor="#ffffff">
									<input name="rows_num" type="text" id="rows_num" value="1" class="inputBg" />
								</td>
							</tr>
							<tr>
								<td align="right" bgcolor="#ffffff">{$lang.label_charset}</td>
								<td bgcolor="#ffffff">
									<select name="charset" id="charset">
									{html_options options=$lang_list}
									</select>
								</td>
							</tr>
							<tr>
								<td colspan="2" align="center" bgcolor="#ffffff">
									<input type="button" name="gen_code" value="{$lang.generate}" onclick="genCode()" class="bnt_blue_1" />
								</td>
							</tr>
							<tr>
								<td colspan="2" align="center" bgcolor="#ffffff">
									<textarea name="code" cols="80" rows="5" id="code" class="B_blue"></textarea>
								</td>
							</tr>
						</table>
					</form>
					
					<script language="JavaScript">
						var elements = document.forms['theForm'].elements;
						var url = '{$url}';
						var u   = '{$user_id}';
						/**
						* 生成代码
						*/
						function genCode()
						{
							// 检查输入
							if (isNaN(parseInt(elements['goods_num'].value)))
							{
							alert('{$lang.goods_num_must_be_int}');
							return;
							}
							if (elements['goods_num'].value < 1)
							{
							alert('{$lang.goods_num_must_over_0}');
							return;
							}
							if (isNaN(parseInt(elements['rows_num'].value)))
							{
							alert('{$lang.rows_num_must_be_int}');
							return;
							}
							if (elements['rows_num'].value < 1)
							{
							alert('{$lang.rows_num_must_over_0}');
							return;
							}

							// 生成代码
							var code = '\<script src=\"' + url + 'goods_script.php?';
							code += 'need_image=' + elements['need_image'].value + '&';
							code += 'goods_num=' + elements['goods_num'].value + '&';
							code += 'arrange=' + elements['arrange'].value + '&';
							code += 'rows_num=' + elements['rows_num'].value + '&';
							code += 'charset=' + elements['charset'].value + '&u=' + u;
							code += '\"\>\</script\>';
							elements['code'].value = code;
							elements['code'].select();
							if (Browser.isIE){
								window.clipboardData.setData("Text",code);
							}
						}
						var compare_no_goods = "{$lang.compare_no_goods}";
						var btn_buy = "{$lang.btn_buy}";
						var is_cancel = "{$lang.is_cancel}";
						var select_spe = "{$lang.select_spe}";
					</script>
				</if>
				<!--#收藏商品列表页面 end-->
			<!--右边对应左边栏内容-->
		</div>
		<!--右边栏-->
	</div>
</div>
<!--用户中心导航-->



